﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>端口套餐设置-新增套餐</title> <#include "../common/Resources.ftl"/>
<link href="http://192.168.0.42/resource/greensystem/css/module/config.css" rel="stylesheet" type="text/css" />
<link href="http://192.168.0.42/resource/greensystem/css/module/join.css" rel="stylesheet" type="text/css" />

</head>
<body>
	<div id="mainWraper" class="clearfix">
		<div class="edit-box borker-edit-box">
			<div class="edit-box-hd">
				<div class="tool">
					<div class="fl">
						<a class="mini-button " href="${ctx}/erpPackage/manager"><span
							class="mini-button-text">返回</span> </a>
					</div>
					<div class="fr">
						<div class="breadCrumb">
							您的位置：<a href="${ctx}/erpPackage/manager">端口套餐设置</a> &gt; <span
								class="current">新增端口套餐</span>
						</div>
					</div>
				</div>
			</div>
			<div class="edit-box-bd">
				<div class="form-box">
					<table width="" border="0" cellspacing="0" cellpadding="0"
						class="form-table form-table-towcols">
						<tr>
							<th align="right">城市：</th>
							<td><div class="f7"  title="选择城市" onchange="changeCity">
			                	<input type="text" name="limitCityName" id="limitCityName" 
							    class="input-text IDcard" reg='Required' tip="请选择城市" readonly="readonly"/>
								<input type="hidden" name="limitCity" id="limitCity"/>	
								<input type="hidden" name="longnumber" id="longnumber"/>	
									<a class="f7-select" onclick="com.green.web.ErpPackageAdd.onclickOrg()"></a>
				        	</div>
				        </td>
						</tr>
						<tr>
							<th align="right" scope="col">套餐类型：</th>
							<td scope="col"><#if joinTypeEnum??> <#list joinTypeEnum as
								joinType> <input type="radio" name="type"<#if
									joinType.value=="ALL_CAPITAL"> checked="checked" </#if>
									id="type"
									value="${joinType.value?if_exists}"/>${joinType.name?if_exists}
									</#list> </#if> 
							</td>
						</tr>
						<tr>
							<th align="right">试用期：</th>
							<td><input type="text" name="freeDays" id="freeDays"
								class="input-text IDcard" reg='number' tip="请输入数字" maxNumber="4" value="0"/> 天</td>
						</tr>
						<tr>
							<th align="right">关联岗位：</th>
							<td>
							<div class="f7"  title="选择岗位">
			                	<input type="text" name="positionName" id="positionName"
								class="input-text IDcard" reg='Required' tip="选择岗位" value="" />
								<input type="hidden" name="positionId" id="positionId"/>
									<a class="f7-select" onclick="com.green.web.ErpPackageAdd.getErpPositionType()"></a>
				        	</div>
							
							</td>
						</tr>
						<tr>
							<th align="right">设置套餐：</th>
							<td>
								<div class="setPackage">
									<div class="item">
										
									</div>
									 <a href="javascript:void(0);" class="mini-button" onclick="com.green.web.ErpPackageAdd.addPrivilegeRule();"><span class="mini-button-text mini-button-icon icon-add">新增套餐</span></a> 
									<table id="privilegeRule">
										<tr>
											<td>											
											优惠套餐名<input type="text" name="name" id="name" reg='Required' maxNumber="20" tip="请输入套餐名"
											tip-position="top" class="input-text" value="" /> ,可享受 <input type="text"
											name="discount" id="discount" class="input-text w_60" style="width: 80px" maxNumber="8" reg='Float' tip="请输入金额" tip-position="top" 
											value="" /> 元购买, <select name="month" id="month" reg='Required' tip="请选择月份" tip-position="top" style="margin-right:10px" >
										    <option value="">选择月份</option>   
											<option value="1">1个月</option>
											<option value="2">2个月</option>
											<option value="3">3个月</option>
											<option value="4">4个月</option>
											<option value="5">5个月</option>
											<option value="6">6个月</option>
											<option value="7">7个月</option>
											<option value="8">8个月</option>
											<option value="9">9个月</option>
											<option value="10">10个月</option>
											<option value="11">11个月</option>
											<option value="12">12个月</option>
										</select>
										<a href="javascript:void(0);" onclick="com.green.web.ErpPackageAdd.delAll(this,1);" class="mini-button "><span class="mini-button-text mini-button-icon icon-remove">删除</span>
										</a>
											</td>									 
										</tr>
									</table>
								</div>
							</td>
						</tr>
						<tr>
							<th align="right">&nbsp;</th>
							<td>
								<div class="form-button">
									<a class="mini-button importantBtn"
										href="javascript:com.green.web.ErpPackageAdd.toSubmit();"><span
										class="mini-button-text">保存</span> </a>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>

		</div>
	</div>
	<!--右边结束 -->
</body>
<script type="text/javascript" src="${base}/scripts/module/manage/ErpPackageAdd.js"></script>
<script type="text/javascript"	src="${base}/scripts/plugin/easy_validator.pack.js"></script>
<script>
function selectOrg(obj) {
	$("#limitCity").val(obj.id)
    $("#longnumber").val(obj.longnumber);
	$("#limitCityName").val(obj.name)
}
function selectErpPositionType(obj) {
	$("#positionId").val(obj.id)
	$("#positionName").val(obj.name)
}
</script>
</html>
